-- GENERATED SPELL FOR [Shy-Rotam] --


function spell0_10737(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10737', 15000, 1)
end

function spell1_10737(pUnit, Event) --@Tendon Rip,n/a--
pUnit:FullCastSpellOnTarget(3604,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_10737', 8000, 1)
end

function spell2_10737(pUnit, Event) --@Terrifying Roar,Self--
pUnit:FullCastSpellOnTarget(14100,pUnit)
pUnit:RegisterEvent('Sorts_10737', 5338, 1)
end

function Sorts_10737(pUnit, Event)
local choix_sorts_10737 = math.random(0, 2)
if choix_sorts_10737 == 0 then
pUnit:RegisterEvent('spell0_10737', 1, 1)
end
if choix_sorts_10737 == 1 then
pUnit:RegisterEvent('spell1_10737', 1, 1)
end
if choix_sorts_10737 == 2 then
pUnit:RegisterEvent('spell2_10737', 1, 1)
end
end

function mob10737_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_10737', math.random(1500, 3000), 1)
end

function mob10737_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10737_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob10737_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(10737, 1, 'mob10737_Action')
RegisterUnitEvent(10737, 2, 'mob10737_Leave')
RegisterUnitEvent(10737, 3, 'mob10737_Kill')
RegisterUnitEvent(10737, 4, 'mob10737_Die')
